/*
* jlb
*/
package com.jlb.active.entity;

/**
 * 激活币池 的实体类的状态
 * 状态：正常 Normal，已领取 Received，已使用 Used
 *
 * @author jlb
 */
public enum ActivePoolState implements java.io.Serializable {
    Normal("正常"),
    Received("已领取"),
    Used("已使用"),;

    ActivePoolState(String val) {
        this.val = val;
    }

    public String val;

    /**
     * 根据状态名称查询状态
     *
     * @param stateName
     * @return
     */
    public static ActivePoolState getEnum(String stateName) {
        for (ActivePoolState activePoolState : ActivePoolState.values()) {
            if (activePoolState.name().equalsIgnoreCase(stateName)) {
                return activePoolState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.name();
    }

}
